// Ionic Starter App

angular.module('starter', ['ionic','starter.controllers', 'starter.services','ion-affix'])

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
      cordova.plugins.Keyboard.disableScroll(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
})

.config(function($stateProvider, $urlRouterProvider) {

  $stateProvider

    .state('first', {
    url: '/first',
    templateUrl: 'templates/first.html'
  })

.state('city',{
	url:'/city',
	templateUrl:"templates/city.html"
})

.state('hotel',{
	url:'/hotel',
	templateUrl:"templates/hotel.html"
})

.state('self-driving',{
	url:'/self-driving',
	templateUrl:"templates/self-driving.html"
})
$urlRouterProvider.otherwise('/first')


})